Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spawn verb no longer DDOSes the server/user when called with nothing #5781

Closed
wants to merge 1 commit into from

Conversation

PhantomEpicness
Copy link
Contributor

@PhantomEpicness PhantomEpicness commented Feb 21, 2024

About the pull request

Prevents admins from blowing up the server if they call the spawn proc with nothing.

There was a check for this,but it was ineffective.

Explain why it's good for the game

Testing Photographs and Procedure

Screenshots & Videos

Put screenshots and videos here with an empty line between the screenshots and the <details> tags.

Changelog

🆑 TotalEpicness5
fix: Fixed the admin spawn verb so it doesn't ddos the server if nothing is called with it.
/:cl:

@github-actions github-actions bot added the Fix Fix one bug, make ten more label Feb 21, 2024
var/chosen
if(matches.len==1)
if(matches.len > 1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you intend to change this from == to >?

@harryob harryob changed the title Spam verb no longer DDOSes the server/user when called with nothing Spawn verb no longer DDOSes the server/user when called with nothing Feb 22, 2024
@@ -182,12 +182,10 @@
for(var/path in types)
if(findtext("[path]", object))
matches += path

if(matches.len==0)
if(matches.len==0 || matches == "" || matches == " ")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

matches is a list, what is this trying to do

@harryob harryob marked this pull request as draft February 22, 2024 10:46
Copy link
Contributor

github-actions bot commented Mar 1, 2024

This PR has been inactive for long enough to be automatically marked as stale. This means it is at risk of being auto closed in ~ 7 days, please address any outstanding review items and ensure your PR is finished, if these are all true and you are auto-staled anyway, you need to actively ask maintainers if your PR will be merged. Once you have done any of the previous actions then you should request a maintainer remove the stale label on your PR, to reset the stale timer. If you feel no maintainer will respond in that time, you may wish to close this PR youself, while you seek maintainer comment, as you will then be able to reopen the PR yourself

@github-actions github-actions bot added the Stale beg a maintainer to review your PR label Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix Fix one bug, make ten more Stale beg a maintainer to review your PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants